import os
from dataanalysis import *

if __name__ == '__main__':
    stringName = "blackShoesUpResult.txt"
    white = "whiteShoesUpResult.txt"
    # calibration = "calib200Up.txt"
    calibration = "Horizontal_Vertical.txt"
    all_data = collect_fuction(stringName)
    white_data = collect_fuction(white)
    calibration_data = collect_fuction(calibration)

    for data in calibration_data:
        if data[2] >=0:
            continue
        print(abs(data[0] - data[2]), data[2])